﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.CApMlmLocationsValidation
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using EngineeringInternalExtension;
using Tecnomatix.Engineering;


namespace DnProcessSimulateCommands;

internal class CApMlmLocationsValidation
{
  private TxLocationManipulationEx _locManipulation;

  public CApMlmLocationsValidation(ITxObject location)
  {
    this._locManipulation = new TxLocationManipulationEx(location, true, true);
  }

  public CApMlmLocationsValidation(ITxObject location, bool doCheck, bool doRotateToMaximum)
  {
    this._locManipulation = new TxLocationManipulationEx(location, doCheck, doRotateToMaximum);
  }

  public LocationNewStatus GetMaxAllowedTranslationDelta(
    TxTransformation referenceFrame,
    ref double deltaX,
    ref double deltaY,
    ref double deltaZ)
  {
    return this._locManipulation.GetMaxAllowedTranslationDelta(referenceFrame, ref deltaX, ref deltaY, ref deltaZ);
  }

  public LocationNewStatus GetMaxAllowedRotationDelta(
    ref double deltaX,
    ref double deltaY,
    ref double deltaZ)
  {
    return this._locManipulation.GetMaxAllowedRotationDelta(ref deltaX, ref deltaY, ref deltaZ);
  }

  public LocationNewStatus GetLocationStatus(LocationStatusCheck checkStatuts = 0)
  {
    return this._locManipulation.GetLocationStatus(checkStatuts);
  }

  public void GetRotationLimits(ReferenceAxis theAxis, out double max, out double min)
  {
    this._locManipulation.GetAxisRotationLimit(theAxis, ref max, ref min);
  }

  public void GetTranslationLimits(
    TxTransformation referenceFrame,
    ReferenceAxis theAxis,
    out double max,
    out double min)
  {
    this._locManipulation.GetAxisTranslationLimit(referenceFrame, theAxis, ref max, ref min);
  }
}
